package com.example.hanchen.yongkanggy.http;


import com.example.hanchen.yongkanggy.entity.StateEntity;
import com.example.hanchen.yongkanggy.entity.StatusCode;
import com.example.hanchen.yongkanggy.entity.verificationimgEntity;

import java.io.File;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface ApiService {

    @FormUrlEncoded
    @POST(HttpUrlManager.CLIENTUSERLOGIN)
    Observable<StatusCode> clientuserlogin(@Field("account") String account, @Field("password") String password,@Field("code") String code, @Header("parameterSign") String parameterSign);


    @FormUrlEncoded
    @POST(HttpUrlManager.VERIFICATIONIMG)
    Observable<verificationimgEntity> verificationimg(@Field("file") File file, @Field("moduleName") String moduleName);

    @FormUrlEncoded
    @POST(HttpUrlManager.FEEDBACKADD)
    Observable<StateEntity> feedbackadd(@Field("content") String content, @Field("feedbackTypeId") String feedbackTypeId);




}
